﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Icst.Leaflike.Cache
{
    public interface ICachePolicy
    {
        void Add<T>(string key, T value);
        void Add<T>(string key, T value, DateTime dt);
        T Get<T>(string key);
        T GetIf<T>(string key, Func<T> getobject);
        void Add(string key, object value);
        void Add(string key, object value, DateTime dt);
        object Get(string key);
        void Delete(string key);
        void Clear();
    }
}
